package com.huel.fragment;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.huel.taobaostore.R;

public class Mine_fragment extends Fragment {
    private View contextView;
    private TextView name;
    private String username;


    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
        contextView = inflater.inflate(R.layout.fragment_mine, container, false);
        name=contextView.findViewById(R.id.tv_name);
        if(getUsername()!=null&&getUsername()!="")
        name.setText(getUsername());
        return  contextView;
    }
}
